package com.milotnt.pojo;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.milotnt.enums.StaffEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(description = "员工实体类")
@TableName("employee")
@Data
public class EmployeeEntity extends BaseEntity{

    @Schema(description = "员工账号")
    @TableField(value = "employee_account")
    private Long employeeAccount;

    @Schema(description = "员工名称")
    @TableField("employee_name")
    private String employeeName;

    @Schema(description = "员工性别")
    @TableField("employee_gender")
    private String employeeGender;

    @Schema(description = "员工年龄")
    @TableField("employee_age")
    private Long employeeAge;

    @Schema(description = "入职时间")
    @TableField("entry_time")
    private Date entryTime;

    @Schema(description = "员工职位")
    @EnumValue
    @TableField("staff")
    private StaffEnum staff;

    @Schema(description = "员工信息")
    @TableField("employee_message")
    private String employeeMessage;

}
